<template>
  <div class="wrapper wrapper-content animated fadeInRight v-cloak" v-cloak>
    <div class="row">
      <div class="ibox float-e-margins">
        <div class="form m-tibox-content col-md-12">
          <div class="clearfix "></div>
          <div class="col-md-6">
                <div class="form-group clearfix">
                    <label class="control-label">id：</label>
                    <div class="col-md-12 form-control">
                        {{item.id}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">行政区划：</label>
                    <div class="col-md-12 form-control">
                        {{item.regionId}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">行政区划名称：</label>
                    <div class="col-md-12 form-control">
                        {{item.regionName}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">等级：</label>
                    <div class="col-md-12 form-control">
                        {{item.level}}
                    </div>
                </div>

                <!--<div class="form-group clearfix">-->
                    <!--<label class="control-label">河道：</label>-->
                    <!--<div class="col-md-12 form-control">-->
                        <!--{{item.riverCourseCode}}-->
                    <!--</div>-->
                <!--</div>-->

                <div class="form-group clearfix">
                    <label class="control-label">巡查周期：</label>
                    <div class="col-md-12 form-control">
                        {{item.cycle}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">应巡查次数：</label>
                    <div class="col-md-12 form-control">
                        {{item.times}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">任务时间 （根据次数填写开始时间结束时间，例如巡查次数2次，时间为‘开始时间1，结束时间1；开始时间2，结束时间2’）：</label>
                    <div class="col-md-12 form-control">
                        {{item.taskTime}}
                    </div>
                </div>
          </div>
          <div class="col-md-6">

                <div class="form-group clearfix">
                    <label class="control-label">巡查人员类别：</label>
                    <div class="col-md-12 form-control">
                        {{item.personType}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">备注：</label>
                    <div class="col-md-12 form-control">
                        {{item.memo}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">删除标识(0未删除1已删除)：</label>
                    <div class="col-md-12 form-control">
                        {{item.delFlag}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">建立者id：</label>
                    <div class="col-md-12 form-control">
                        {{item.createId}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">更新时间：</label>
                    <div class="col-md-12 form-control">
                        {{item.dateUpdated | date('yyyy-MM-dd HH:mm:ss')}}
                    </div>
                </div>

                <div class="form-group clearfix">
                    <label class="control-label">创建时间：</label>
                    <div class="col-md-12 form-control">
                        {{item.dateCreated | date('yyyy-MM-dd HH:mm:ss')}}
                    </div>
                </div>

          </div>
          <div class="clearfix "></div>
          <div class="col-12 text-center" style="height: 50px;">
            <div>
              <a @click="lbox.closeMyBoxLayer()" class="btn btn-danger" href="javascript:">返回</a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script type="text/javascript">
  import '@/assets/css/style.css'

  import axios from 'axios'
  // import {apiUtil, site} from '@/assets/js/boss'
  import {site} from '@/assets/js/boss'

  export default {
    data() {
      return {
        item: {}
      }
    },
    mounted() {
      let that = window.$vueApp = this;
      document.getElementsByTagName('body')[0].className = 'fixed-sidebar full-height-layout';
      that.staff.init(function () {
        axios.get(site.inspectionPlan.info + sessionStorage.getItem(site.inspectionPlan.info), {}).then(function (response) {
          const result = response.data;
          if (result.code === 0) {
            that.item = result.data;
          } else {
            alert(result.message);
          }
        });
      });
    },
    methods: {}
  }
</script>
